package com.seari.mapper;

import com.seari.bean.EtMaintainPlan;
import com.seari.bean.EtMaintainRecords;
import com.seari.pojo.EtmaintainPlanParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;


@Mapper
public interface EtMaintainPlanMapper {


    List<EtMaintainPlan> getEtmaintainPlan(EtmaintainPlanParam param);

    /**
     * 根据taskNum查询指定的设备维护计划，用于资材表格导出
     * @param taskNum
     * @return
     */
    EtMaintainPlan getETMaintainPlanByTaskNum(String taskNum);
    List<EtMaintainPlan> getEtmaintainPlan(@Param("taskNums")List<Integer> taskNums, @Param("statu")String statu, @Param("startDate")String startDate, @Param("endDate")String endDate);

    List<Integer> getTaksNum(EtmaintainPlanParam param);

    List<EtMaintainPlan> getEtmaintainPlans(EtmaintainPlanParam param);

    Integer addMaintain(EtMaintainPlan et);

    Integer updateMaintain(EtMaintainPlan et);

    Integer deleteMaintain(@Param("taskNum") String taskNum);

    List<EtMaintainRecords> getRecord(@Param("doMain") String doMain, @Param("systemName")String systemName,@Param("eventType") String eventType);

    Integer addRecord(EtMaintainRecords etm);

    List<EtMaintainRecords> getRecords(EtmaintainPlanParam param);

    Integer updateRecords(EtMaintainRecords etm);

    Integer deleteRecord(@Param("taskNum") String taskNum);

    Integer deleteRecords(@Param("taskNums") String[] taskNums);
}
